<template>
	<view style="display: flex;flex-direction: column;">
		<view>
			<image :src="baseInfo.thumb" class="baiyi1"></image>
		</view>
		<view class="head">
			<view class="horizontal">
				<view class="line"></view>
				<text class="regai">施工现场</text>
				<image src="../../static/icon/share_icon.png" style="height: 30rpx; width: 30rpx;margin-left: 500rpx;">
				</image>
			</view>
		</view>

		<view class="img" v-for="(item,index) in list" :key="index">
			<image :src="item.img_url" style="height: 406rpx; width: 670rpx;"></image>
			<view class="mark">
				<view class="linerow"></view>
				<text style="margin-left: 40rpx;">{{item.tag_name}}</text>
				<view class="linerow2"></view>
			</view>
		</view>

		<view>
			<button class="button-style">
				<text style="color: white;">确定预约</text>
			</button>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [],
				baseInfo: []
			}
		},
		methods: {

		},
		onLoad(e) {
			uni.request({
				url: 'https://baiyi.kent.work/api/v1/system/getConstructionDetail',
				method: 'POST',
				data: {

					"id": e.id,
					"page": 1,
					"limit": 10

				},
				success: res => {
					console.log(res);
					this.list = res.data.data.list.list
					this.baseInfo = res.data.data.baseInfo
				},
				fail: () => {},
				complete: () => {}
			});
		}
	}
</script>

<style>
	.baiyi1 {
		height: 450rpx;
		width: 750rpx;
	}

	.horizontal {
		align-items: center;
		display: flex;
	}

	.line {
		display: inline-block; //取消单独占一行
		height: 28rpx;
		width: 6rpx;
		background-color: green;
		margin-left: 60rpx;
	}

	.regai {
		margin-left: 10rpx;
	}

	.head {
		margin-top: 20rpx;
		display: flex;
	}

	.img {
		margin-top: 20rpx;
		display: flex;
		flex-direction: column;
		border-radius: 6rpx;
		align-items: center;
		justify-content: center;
	}

	.linerow {
		display: inline-block;
		height: 3rpx;
		width: 28rpx;
		background-color: green;
		margin-left:200rpx;
	}

	.linerow2 {
		display: inline-block;
		height: 3rpx;
		width: 28rpx;
		background-color: green;
		margin-left: 40rpx;
	}

	.mark {
		background-color: white;
		height: 64rpx;
		width: 675rpx;
		border-radius: 6rpx;
	}

	.button-style {
		background-color: green;
		width: 328rpx;
		height: 80rpx;
		margin-top: 60rpx;
		line-height: 80rpx;
		margin-bottom: 58rpx;
	}
</style>